package com.stormrage.entity.learn;

import java.io.Serializable;
import java.util.Date;

public class LeaBunchApply implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -5538473299093144623L;

	// ------------------------------- Fields -------------------------------

	private Integer id;

	private Integer bunchId;

	private Integer entId;

	private String excel;

	private Date applyDate;
	
	private Integer locked;

	// ------------------------------- Fields -------------------------------

	public LeaBunchApply() {
		
	}

	// ------------------------------- Fields -------------------------------

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getBunchId() {
		return bunchId;
	}

	public void setBunchId(Integer bunchId) {
		this.bunchId = bunchId;
	}

	public Integer getEntId() {
		return entId;
	}

	public void setEntId(Integer entId) {
		this.entId = entId;
	}

	public String getExcel() {
		return excel;
	}

	public void setExcel(String excel) {
		this.excel = excel;
	}

	public Date getApplyDate() {
		return applyDate;
	}

	public void setApplyDate(Date applyDate) {
		this.applyDate = applyDate;
	}

	public Integer getLocked() {
		return locked;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	// ------------------------------- Fields -------------------------------

	public static LeaBunchApply instance(Integer bunchId, Integer entId, String excel) {
		LeaBunchApply entity = new LeaBunchApply();
		entity.setBunchId(bunchId);
		entity.setEntId(entId);
		entity.setExcel(excel);
		entity.setApplyDate(new Date());
		entity.setLocked(0);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " bunchId - " + bunchId + " entId - " + entId + " excel - " + excel
				+ " applyDate - " + applyDate;
	}

}
